﻿<Controls:MetroWindow x:Class="ChoWorkflowDashboard.ChoTaskCmdParamsEditor"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:ChoWorkflowDashboard"
        xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
        xmlns:Controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
        mc:Ignorable="d"
        Title="Cmd Params Editor" Height="500" Width="300"
        Topmost="False"
        BorderBrush="{DynamicResource AccentColorBrush}"
        BorderThickness="1" ShowMaxRestoreButton="false" ShowMinButton="false"
                      Loaded="MetroWindow_Loaded"
                      >
    <DockPanel Name="dpMain">
        <StatusBar DockPanel.Dock="Bottom" Margin="2" >
            <TextBlock x:Name="txtStatus" FontStyle="Normal" Text="{Binding Path=StatusMsg}" />
        </StatusBar>
        <StackPanel DockPanel.Dock="Bottom" Orientation="Horizontal" Margin="2" FlowDirection="RightToLeft">
            <Button Content="Cancel" Margin="2" Height="23" IsCancel="True" Name="btnCancel" TabIndex="51" Tag="5" Width="75" Click="btnCancel_Click" />
            <Button Content="OK" Margin="2" Height="23" IsDefault="True" Name="btnOK" TabIndex="50" Tag="4" Width="75" Click="btnOK_Click" />
        </StackPanel>
        <TextBox Margin="2" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Name="txtSettings" Text="{Binding Path=CmdParams, UpdateSourceTrigger=PropertyChanged}" TextWrapping="WrapWithOverflow" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" />
        <xctk:PropertyGrid Margin="2" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Name="pgSettings" SelectedObject="{Binding Path=CmdParamsProperties}" SelectedObjectName="" ShowTitle="False" />
    </DockPanel>
</Controls:MetroWindow>
